package com.gt.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 个人基本信息
 * </p>
 *
 * @author caidesheng
 */
@Data
@ApiModel(value="EsUserBaseInfo", description="个人基本信息")
public class EsUserBaseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "民族")
    private String nation;

    @ApiModelProperty(value = "出生日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date brithday;

    @ApiModelProperty(value = "身份证号")
    @TableField("idCard")
    private String idcard;

    @ApiModelProperty(value = "身高")
    private String height;

    @ApiModelProperty(value = "体重	")
    private String weight;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "户籍地址")
    private String domicileAddress;

    @ApiModelProperty(value = "常住地址")
    private String residenceAddress;

    @ApiModelProperty(value = "手机1")
    private String mobilePhoneOne;

    @ApiModelProperty(value = "手机2")
    private String mobilePhoneTwo;

    @ApiModelProperty(value = "工作单位")
    private String work;

    @ApiModelProperty(value = "工作单位地址")
    private String workAddress;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @ApiModelProperty(value = "用户id")
    private Long userId;
}
